package cn.wolfcode.fegin;

import cn.wolfcode.common.web.Result;
import cn.wolfcode.domain.OperateIntergralVo;
import cn.wolfcode.domain.PayVo;
import cn.wolfcode.domain.RefundVo;
import cn.wolfcode.fegin.fallback.PayByintergralApiFeginFallback;
import cn.wolfcode.fegin.fallback.PayFeginApiFeginFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * @Author: 普发忠
 * @Date: 2021/11/09/15:21
 */

@FeignClient(name = "intergral-service",fallback = PayByintergralApiFeginFallback.class)
public interface PabByintergralApi {
    
    @RequestMapping("/intergral/payOnIntergral")
    Result<Boolean> payOnIntergral(@RequestBody  OperateIntergralVo intergralVo);
    @RequestMapping("/intergral/refundOnintergral")
    Result<Boolean> refundOnintergral(@RequestBody OperateIntergralVo intergralVo);
}
